package com.yango.teach;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author Li.Ding.yin
 * @create 2021年07月21日16:56-星期三
 * @role 启动类
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.yango"})
@EnableDiscoveryClient//启用服务注册
@EnableFeignClients//启用服务发现
public class ServiceTeachApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceTeachApplication.class, args);
    }
}
